package com.ftrend.printdemo.mhttemplate;

/**
 * 纸张边缘间距
 */
public class Margin {
    private final int top;
    private final int bottom;
    private final int left;
    private final int right;

    public Margin() {
        this.top = 5;
        this.bottom = 5;
        this.left = 8;
        this.right = 8;
    }

    public Margin(int horizontal, int vertical) {
        this.top = vertical;
        this.bottom = vertical;
        this.left = horizontal;
        this.right = horizontal;
    }

    public Margin(int top, int bottom, int left, int right) {
        this.top = top;
        this.bottom = bottom;
        this.left = left;
        this.right = right;
    }

    public int getTop() {
        return top;
    }

    public int getBottom() {
        return bottom;
    }

    public int getLeft() {
        return left;
    }

    public int getRight() {
        return right;
    }
}
